<?php


namespace app\index\controller;


use app\common\model\ArticleCate as AC;
use think\facade\Request;
use think\facade\View;

class Article extends Base
{
    public function index(){
        $news_id = Request::param('news_id','0','intval');
        $template = AC::where('id',$news_id)->find();

        return View::fetch('./Template/default/html/'.$template['template_list']);
    }
}